package pl.mmirski.functests.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class SprintBacklogPage extends Page {

	public SprintBacklogPage(WebDriver driver) {
		super(driver);
	}

	public boolean isOpen() {
		return isElementPresent(By.id("admin"));	
	}

	public void selectProject(String projectName)
	{
		selectValueFromDropDown(By.xpath("//select[@id='project_id']"), projectName);
	}


	public ProductBacklogPage goToProductBacklogPage() {
		clickOnElement(By.linkText("Backlog"));
		return new ProductBacklogPage(driver);
	}

}
